<?php
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>




<form name="myform" method="post" action="?module=<?=$module?>&action=<?=$action?>">
<input name="forward" type="hidden" value="<?=$forward?>">
<input type="hidden" name="page[type]" value="<?=$type?>">
<div class="tag_menu" style="width:99%;margin-top:10px;">
    <ul>
      <li><a href="###" id='TabTitle0' onclick='ShowTabs(0)' class="selected">基本信息</a></li>
      <li><a href="###" id='TabTitle2' onclick='ShowTabs(2)'>权限设置</a></li>
    </ul>
</div>
<table cellpadding="2" cellspacing="1" class="table_form">
  <tbody id='Tabs0' style='display:'>
  <tr>
  <th width='30%'><strong>上级栏目</strong></th>
  <td>
  <?=form::select_page(0, 'page[parentid]', 'parentid', '无（作为一级栏目）', $pageid,'',2)?></td>
  </tr>
    <tr>
      <th><strong>单网页名称</strong></th>
      <td><input name='page[catname]' type='text' id='catname' size='40' maxlength='50'  require="true" datatype="require" msg="单网页名称不能为空">        <font color="red">*</font></td>
    </tr>
    <tr>
      <th><strong>单网页英文名</strong></th>
      <td><input name='page[catdir]' type='text' id='catdir' size='20' maxlength='50'  require="true" datatype="require" msg="单网页英文名不能为空">  <font color="red">*</font></td>
    </tr>
    <tr>
      <th><strong>单网页模板</strong></th>
      <td><?=form::select_template('default', 'setting[template]', 'template', 'page', '','page')?></td>
    </tr>
	<tr style="display:none">
      <th><strong>是否生成Html</strong></th>
      <td>
	  <input type='radio' name='page[ishtml]' value='1' <?php if($SETTING['ishtml']){ ?>checked <?php } ?> > 是&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type='radio' name='page[ishtml]' value='0' <?php if(!$SETTING['ishtml']){ ?>checked <?php } ?> > 否	</td>
    </tr>
	<tr style="display:none">
      <th width='30%'><strong>是否在导航栏显示</strong></th>
      <td>
	  <input type='radio' name='page[ismenu]' value='1'> 是&nbsp;&nbsp;&nbsp;&nbsp;
	  <input type='radio' name='page[ismenu]' value='0' checked> 否	  </td>
    </tr>
    <tr>
      <th><strong>META Title（单网页标题）</strong><br/>针对搜索引擎设置的标题</th>
      <td><input name='setting[meta_title]' type='text' id='meta_title' size='60' maxlength='60'></td>
    </tr>
    <tr>
      <th><strong>META Keywords（单网页关键词）</strong><br/>针对搜索引擎设置的关键词</th>
      <td><textarea name='setting[meta_keywords]' cols='80' rows='7' id='meta_keywords'></textarea></td>
    </tr>
    <tr>
      <th><strong>META Description（单网页描述）</strong><br/>针对搜索引擎设置的网页描述</th>
      <td><textarea name='setting[meta_description]' cols='80' rows='7' id='meta_description'></textarea></td>
    </tr>
    </tbody>
    <tbody id='Tabs2' style='display:none'>
    	<tr> 
          <td colspan="2">
            <table cellpadding="0" cellspacing="1" class="table_list">
              <caption>角色权限</caption>
                  <tr>
                     <td>
                     <?=form::checkbox($ROLE, 'priv_roleid', 'priv_roleid', '')?>
                     </td>
                  </tr> 
              </table>
          </td>
        </tr>
    </tbody>
</table>

<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
     <td width='30%'></td>
     <td><input type="submit" name="dosubmit" value=" 确定 ">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重置 "></td>
  </tr>
</table>
</form>



</body>
</html>
<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>